import time


def time_function(func):
    def inner_function(*args, **kwargs):
        start_time = time.time()
        result = func(*args, **kwargs)
        end_time = time.time()
        print(f"[{func.__name__}] civil time:", end_time - start_time)
        return result

    return inner_function

